this.imgItem = new ImageItem("", this.img, 0, "[InternetTime]");
} catch (IOException var2) {
((Throwable)var2).printStackTrace();
}
this.openingForm.append(this.imgItem);
this.openingStringItem = new StringItem("Internet Time v1.1Beta\nwas developed by", "\nJACADO\nwww.jacado.com\nThis software is provided \"AS IS\", without warranty of any kind. In no event, shell we be liable for any claim, damages or other liability. Copyright(c)2001 Haim Michael, JACADO & ZINDELL Ltd. All rights reserved.");
this.openingForm.append(this.openingStringItem);
this.startCommand = new Command("Start", 4, 1);
this.openingForm.addCommand(this.startCommand);
this.openingForm.setCommandListener(this);
this.display.setCurrent(this.openingForm);
this.settingForm = new Form("Setting");
this.helpCommand = new Command("Help", 4, 1);
this.setCommand = new Command("Set", 4, 1);
this.backCommand = new Command("Back", 2, 1);
this.settingForm.addCommand(this.helpCommand);
this.settingForm.addCommand(this.backCommand);
this.settingForm.setCommandListener(this);
this.helpForm = new Form("Help");
String str = "\nA day in Internet Time begins at midnight, @000 Swatch.beats, according to the Central Europian Wintertime. Each day is divided up into 1000 \".beats\". Each beat is the equivalent of 1 minute 26.4 seconds. This midlet computes the internet time according to the current GMT time. The current GMT time is calculated according to the device configuration. However, since your device configuration might be wrong, you can set the GMT time by your self. Note that when you set the GMT time you should ignore daylight savings changes.";
this.helpStringItem = new StringItem("Instructions", str);
this.helpForm.append(this.helpStringItem);
this.helpForm.addCommand(this.backCommand);
this.helpForm.setCommandListener(this);
}
public void commandAction(Command c, Displayable d) {
if (c == this.settingCommand) {
long ms = System.currentTimeMillis();
long time = ms % 86400000L;
this.timeGMT = new DateField("GMT time", 2, TimeZone.getTimeZone("GMT"));